﻿using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Web.Models.AnalysisData
{
    /// <summary>
    /// 
    /// </summary>
    [Table("reportanalysis")]
    public class ReportAnalysis
    {
        /// <summary>
        /// 消息唯一标识
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Column("id")]
        public String Id { get; set; }

        /// <summary>
        ///  mmsi
        /// </summary>
        [Required]
        [Column("mmsi")]
        public string MMSI { get; set; }

        /// <summary>
        ///  船名
        /// </summary>
        [Required]
        [Column("shipName")]
        public string ShipName { get; set; }

        /// <summary>
        ///  航次号
        /// </summary>
        [Required]
        [Column("voyageNo")]
        public string VoyageNo { get; set; }

        /// <summary>
        ///  开始时间
        /// </summary>
        [Column("startTime")]
        public long StartTime { get; set; }

        /// <summary>
        ///  结束时间
        /// </summary>
        [Column("endTime")]
        public long EndTime { get; set; }

        /// <summary>
        ///  是否航行结束
        /// </summary>
        [Required]
        [Column("sailEnd")]
        public bool SailEnd { get; set; }

        /// <summary>
        ///  分析数据json
        /// </summary>
        [Required]
        [Column("analyseData")]
        public String AnalyseData { get; set; }

        /// <summary>
        ///  相关报文Key
        /// </summary>
        [Required]
        [Column("reportKey")]
        public String ReportKey { get; set; }
    }
}
